package TestCamelCase;

import org.junit.Assert;
import org.junit.Test;
import sourceCamelCase.*;
public class Tester {

    String[] testData = { "Get", "first", "ELEMENT" };

    @Test
    public void checkResult() {

        String expectedsData = "getFirstElement";

        String result = TranslateWorldByRegister
                .ArrayFirstSymbolUpper(testData);

        Assert.assertEquals(expectedsData, result);
    }

    @Test
    public void ArrayIsNotNull() {

        String result = TranslateWorldByRegister
                .ArrayFirstSymbolUpper(testData);

        Assert.assertNotNull(result);
    }

    @Test
    public void checkFirstSymbolIsDigital() {

        String result = TranslateWorldByRegister
                .ArrayFirstSymbolUpper(testData);

        Assert.assertTrue(result.matches("^\\D*$"));

    }

    @Test
    public void checkIsSpace() {

        String result = TranslateWorldByRegister
                .ArrayFirstSymbolUpper(testData);

        Assert.assertFalse(result.matches("^\\D+\\s+\\D*$"));

    }
}